home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm9_1_1
- Caption = "Fixed-length Strings"
- ClientHeight = 1275
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 2895
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1275
- ScaleWidth = 2895
- Begin VB.PictureBox picOutput
- BeginProperty Font
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1095
- Left = 960
- ScaleHeight = 1035
- ScaleWidth = 1635
- TabIndex = 1
- Top = 120
- Width = 1695
- End
- Begin VB.CommandButton cmdGo
- Caption = "Go"
- Height = 495
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 615
- End
- Attribute VB_Name = "frm9_1_1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdGo_Click()
- Dim city As String * 9
- 'Illustrate fixed-length strings
- picOutput.Cls
- picOutput.Print "123456789"
- city = "San Francisco"
- picOutput.Print city
- city = "Detroit"
- picOutput.Print city; "MI"
- picOutput.Print Len(city)
- End Sub
-